package com.jacars.biz.user.dao.service;

import com.jacars.biz.user.dao.model.JsptRoleMenu;
import com.jacars.common.model.JsptMenu;
import com.jacars.common.service.ISuperService;

import java.util.List;
import java.util.Set;

/**
 * @author zlt
 */
public interface JsptRoleMenuService extends ISuperService<JsptRoleMenu> {
    int save(Long roleId, Long menuId);

    int delete(Long roleId, Long menuId);

    List<JsptMenu> findMenusByRoleIds(Set<Long> roleIds, Integer type);

    List<JsptMenu> findMenusByRoleCodes(Set<String> roleCodes, Integer type);
}
